package com.itheima.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

public class Demo03 {

    public static void main(String[] args) {

        ArrayList<String> list1 = new ArrayList<>(List.of("张三丰","张无忌","张翠山","王二麻子","张良","谢广坤"));
        Stream<String> skip = list1.stream().skip(3);
        long count = skip.count();
        System.out.println(count);
        System.out.println(list1.size());

    }
}
